<div class="content_block col-xs-12 col-sm-12 col-md-12 col-lg-12">
	<form action="<?php echo base_url('user/checklogin'); ?>" id="signup-form" class="form-horizontal" method="post" role="form">
		<fieldset>
			<legend>เข้าสู่ระบบ</legend>
			<?php
				$error_message = $this->session->flashdata("error_message");
				if(!empty($error_message)){
					?>
					<div class="alert alert-danger alert-dismissable">
					  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					  <h4>ผิดผลาด!</h4> <?php echo $error_message;?>
					</div>
					<?php
				}
			?>
		<div class="form-group">
		<label class="col-sm-3 control-label" for="username">ชื่อผู้ใช้</label>
			<div class="col-sm-4">
		        <input type="text" class="form-control" name="username" id="username">
			</div>
		</div>
		<div class="form-group">
		<label class="col-sm-3 control-label" for="username">รหัสผ่าน</label>
			<div class="col-sm-4">
		        <input type="password" class="form-control" name="password" id="password">
			</div>
		</div>
		<div class="form-group">
				<div class="col-sm-offset-3 col-sm-9">
		      <button type="submit" class="btn btn-primary" id="submitbtn" name="submitbtn" value="submitbtn">ยืนยัน</button>
		      <a href="<?php echo base_url();?>" class="btn btn-default">ยกเลิก</a>
		     </div>
		</div>
		</fieldset>
	</form>
</div>